package com.fortune.dto.in.returnDeposit;

import java.math.BigDecimal;

import javax.validation.constraints.Min;

import org.hibernate.validator.constraints.NotBlank;

import io.swagger.annotations.ApiModelProperty;

public class EditDto {
	@NotBlank
	@ApiModelProperty(example="工单id")
	private String returnDepositId;
	@ApiModelProperty(required=true, example="序号")
	private int orderNum;
	@NotBlank(message="客户id不能为空")
	@ApiModelProperty(example="客户id")
	private String clientId;
	@NotBlank(message="商品id不能为空")
	@ApiModelProperty(example="商品id")
	private String productId;
	@Min(value=1,message="空箱数量不能小于1")
	@ApiModelProperty(example="空箱数量")
	private int productCount;
	@ApiModelProperty(example="押金金额")
	private BigDecimal depositPrice;
	public String getReturnDepositId() {
		return returnDepositId;
	}
	public void setReturnDepositId(String returnDepositId) {
		this.returnDepositId = returnDepositId;
	}
	public int getOrderNum() {
		return orderNum;
	}
	public void setOrderNum(int orderNum) {
		this.orderNum = orderNum;
	}
	public String getClientId() {
		return clientId;
	}
	public void setClientId(String clientId) {
		this.clientId = clientId;
	}
	public String getProductId() {
		return productId;
	}
	public void setProductId(String productId) {
		this.productId = productId;
	}
	public int getProductCount() {
		return productCount;
	}
	public void setProductCount(int productCount) {
		this.productCount = productCount;
	}
	public BigDecimal getDepositPrice() {
		return depositPrice;
	}
	public void setDepositPrice(BigDecimal depositPrice) {
		this.depositPrice = depositPrice;
	}
	@Override
	public String toString() {
		return "EditDto [returnDepositId=" + returnDepositId + ", orderNum=" + orderNum + ", clientId=" + clientId
				+ ", productId=" + productId + ", productCount=" + productCount + ", depositPrice=" + depositPrice
				+ "]";
	}
}
